import request from '@/utils/request';

export async function getMaterialShortageByPage (params: any) {
    return request('/api/material/getMaterialShortageByPage', {
    method: 'POST',
    data: params,
  });
}



export async function addMaterialShortage (params: any) {
    return request('/api/material/addMaterialShortage', {
    method: 'POST',
    data: params,
  });
}

export async function updateMaterialShortage (params: any) {
    return request('/api/material/updateMaterialShortage', {
    method: 'POST',
    data: params,
  });
}

export async function delMaterialShortage (params: any) {
    return request('/api/material/delMaterialShortage', {
    method: 'POST',
    data: params,
  });
}


export async function exportMaterialShortage(params: any) {
    return request('/api/material/exportMaterialShortage', {
    method: 'POST',
    data: params,
    responseType: 'blob',
  });
}
export default { getMaterialShortageByPage, addMaterialShortage, updateMaterialShortage, delMaterialShortage, exportMaterialShortage }
